package jonggyuni.basic;

import java.util.Scanner;

public class EX72_OOP {

	public static void main(String[] args) {
		
		String hdline ="-------------------------------------------"; 
		
		//객체 생성 및 객체 다루기
		Ex72_Retangle retangle = new Ex72_Retangle();
		Ex73_Fan fan = new Ex73_Fan();
		Ex74_Account account = new Ex74_Account();
		Ex75_Stock stock = new Ex75_Stock();
		
		Scanner sc = new Scanner(System.in);
		
		//72번
		System.out.println("초기값 : ");
		System.out.print(retangle.width + " ");
		System.out.print(retangle.height + " ");
		System.out.print(retangle.color + " ");
		System.out.println("");
		System.out.println(hdline);
		
		System.out.print("72.입력값 : ");
		retangle.width = sc.nextDouble();
		retangle.height = sc.nextDouble();
		retangle.color = sc.nextLine();
		
		System.out.print(retangle.width + " ");
		System.out.print(retangle.height + " ");
		System.out.print(retangle.color + " ");
		System.out.println("");
		System.out.println(hdline);
		
		//73번
/*		System.out.print(fan.speed + " ");
		System.out.print(fan.on + " ");
		System.out.print(fan.radius + " ");
		System.out.print(fan.color + " ");*/
		
		//74번
		System.out.print("74.입력값: ");
		account.aid = sc.nextInt();
		account.balance = sc.nextInt();
		account.interestRate = sc.nextDouble();
		account.dateCreated = sc.nextLine();
		
		System.out.print(account.aid + " ");
		System.out.print(account.balance + " ");
		System.out.print(account.interestRate + " ");
		System.out.print(account.dateCreated + " ");
		System.out.println("");
		System.out.println(hdline);
		
		//75번
		System.out.print("75.입력값:");
		stock.sname = sc.nextLine();
		stock.previousClosingPrice = sc.nextInt();
		stock.currentPrice = sc.nextInt();
		
		
		
		
		
		sc.close();
		
		
	}// 메인
	
	

}// 클래스

class Ex72_Retangle{
	double width=1.0;
	double height=1.0;
	String color="white";
	
/*	public Ex72_Retangle(){
		double width=1.0;
		double height=1.0;
		String color="white";		
	}*/
	
}// 사각형

class Ex73_Fan{  //일단 보류
	String SLOW;
	String MEDIUM;
	String FAST;
	String on;
	String speed;
	
	double radius;
	String color;
	
	public Ex73_Fan(){
		final String SLOW = "1";
		final String MEDIUM = "2";
		final String FAST = "3";
		boolean on = false;
		String speed = SLOW;
		
		double radius = 5.0;
		String color = "blue";	
		
	}
	
}// Fan

class Ex74_Account{
	int aid = 0;
	int balance = 0;
	double interestRate = 0;	
	String dateCreated;
/*	public Ex74_Account(){
		int aid = 0;
		int balance = 0;
		int interestRate = 0;		
	}*/
	
}// 계정

class Ex75_Stock{
	String sname;
	int previousClosingPrice;
	int currentPrice;
	
	
}// 재고
